-
Notifications
You must be signed in to change notification settings - Fork 13
feat: connect new backend conversation with frontend #182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
error9098x
commented
Nov 6, 2025
- changes the existing structure to support the new FastAPI endpoints with the server-side conversational threads.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the chat interface to migrate from a client-side sessionStorage-based chat thread system to a backend API-driven conversation management system. The changes introduce proper conversation persistence, improved message structure, and better source handling.
- Replaces local thread storage with server-side conversation management via REST APIs
- Refactors message structure from question/answer pairs to role-based chat messages
- Implements optimistic UI updates for better user experience
- Adds URL extraction from context sources when explicit source URLs are missing
Reviewed Changes
Copilot reviewed 4 out of 6 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
frontend/nextjs-frontend/components/SourceList.tsx |
Updated to handle ContextSource objects and extract URLs from context text when source is unavailable |
frontend/nextjs-frontend/components/MessageList.tsx |
Refactored to display role-based messages with proper user/assistant UI distinction |
frontend/nextjs-frontend/components/ChatHistory.tsx |
Renamed thread terminology to conversations and added active conversation highlighting |
frontend/nextjs-frontend/app/page.tsx |
Major refactor to integrate backend conversation APIs, implement CRUD operations, and add proper error handling |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
30fb822 to
1d2a61d
Compare
|
@error9098x Is there a way you can test this PR independently of #181? |
Signed-off-by: error9098x <[email protected]>
Signed-off-by: Jack Luar <[email protected]>
Signed-off-by: Jack Luar <[email protected]>
Signed-off-by: Jack Luar <[email protected]>
Signed-off-by: Jack Luar <[email protected]>
- backend: order messages by created_at - fix conversations payload Signed-off-by: Jack Luar <[email protected]>
Signed-off-by: Jack Luar <[email protected]>